import request from '@/utils/request'

export function getAlertList(query) {
  return request({
    url: '/alert/getAlertList',
    method: 'get',
    params: query
  })
}

export function dispelalert(data) {
  return request({
    url: '/alert/dispelalert',
    method: 'post',
    data
  })
}

export function uploadPic(data) {
  return request({
    url: '/upload',
    method: 'post',
    data,
    transformRequest: [function(data) {
      return data
    }]
  })
}
